﻿namespace Df.Common.Forms
{
    ///<summary>
    ///This is Base Elemnt that using in other elemnts
    /// do not have UI implemention
    ///</summary>
    public class DfElementItem
    {

        public DfElementItem()
        {

        }

        public DfElementItem(string value, string text)
        {
            Value = value;
            Text = text;
        }

        public string Value { get; set; }
        public string Text { get; set; }

        public static explicit operator DfElementItem(DfBaseElement DfElement)
        {
            return new DfElementItem(DfElement.Title, DfElement.GetValue().ToString());
        }
    }
}